Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

VNC tunneling over SSH

  • 27-12-2006 01:30PM
    #1
    Registered Users, Registered Users 2 Posts: 3,225 ✭✭✭


    I was wondering if someone had any ideas for this little problem.

    I want to be able to tunnel VNC through SSH on my home network. Now this would be fine if the machine serving VNC was also the SSH server, but in my home network, the machine SSH is fowarded to is a linux webserver (lets say 192.168.0.3), while the VNC machine is a windows machine (192.168.0.6),two seperate PCs on the network.

    So once I have a connection established to my SSH machine, how can I further create a VNC session on the seperate machine?


Comments

  • Registered Users, Registered Users 2 Posts: 37,485 ✭✭✭✭Khannie


    What you're really looking for is FreeNX (www.nomachine.com may have a free version). It uses the NX protocol over SSH. Basically, it's VNC over SSH, except better than VNC by a long shot.


  • Registered Users, Registered Users 2 Posts: 3,226 ✭✭✭gerrowadat


    I forget which port VNC uses, your server/client should be able to tell you.

    This should work (and has for me) with a simple port forward. When you're outside your network, do this:

    ssh -L 8080:192.168.0.6:VNCPORT user@myhomeip

    VNCPORT should be the port the VNC server is listening on on 192.168.0.6. This will forward that port back to 8080 on your local machine. Just connect to localhost:8080 with your vnc client.


  • Registered Users, Registered Users 2 Posts: 3,225 ✭✭✭JackKelly


    Thanks for that lads. It seems that ssh -L works, but it may be slow so I think I'll have a look at NX too,save me the trouble of tunneling myself


  • Registered Users, Registered Users 2 Posts: 804 ✭✭✭TimTim


    TimAy wrote:
    Thanks for that lads. It seems that ssh -L works, but it may be slow so I think I'll have a look at NX too,save me the trouble of tunneling myself

    Have you looked at http://www.hamachi.cc/? I use it all the time with a mate of mine and we never have to bother port forwarding etc


Advertisement